<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns="http://www.w3.org/1999/xhtml" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:st="http://www.whatisjee.com/ssf/tags" xmlns:rich="http://richfaces.org/rich" xmlns:s="http://jboss.com/products/seam/taglib" template="/common/template/header-content.xhtml">
	<ui:param name="title" value="#{messages['home.changePwd']}"/>
	<ui:define name="content">
		<h:panelGrid id="pgForm" columns="2" styleClass="form" columnClasses="label,input">
			<st:label for="isOldPwd" required="true" value="#{messages['user.oldPwd']}" />
			<s:decorate>
				<h:inputSecret id="isOldPwd" required="true" value="#{passwordAct.oldPwd}" styleClass="inputtext width25" maxlength="20" disabled="#{not userAct.user.pwdChged}" />
			</s:decorate>
			<st:label for="isPassword" required="true" value="#{messages['user.password']}" />
			<s:decorate>
				<h:inputSecret id="isPassword" required="true" value="#{passwordAct.password}" styleClass="inputtext width25" maxlength="20" disabled="#{not userAct.user.pwdChged}" />
			</s:decorate>
			<st:label for="isPasswordEx" required="true" value="#{messages['user.passwordEx']}" />
			<s:decorate>
				<h:inputSecret id="isPasswordEx" required="true" value="#{passwordAct.passwordEx}" styleClass="inputtext widt25" maxlength="20" disabled="#{not userAct.user.pwdChged}" />
			</s:decorate>
			<rich:spacer />
			<h:panelGroup>
				<h:commandButton action="#{passwordAct.changePassword}" value="#{messages['cmm.save']}" styleClass="button" />
				<input type="button" value="#{messages['cmm.cancel']}" class="button cancel" onclick="Ssf.cancel()" />
			</h:panelGroup>
		</h:panelGrid>	
	</ui:define>
</ui:composition>